home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISOAPCallCompletion.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  169 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPCallCompletion.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISOAPCallCompletion_h__
  6. #define __gen_nsISOAPCallCompletion_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsISOAPCall; /* forward declaration */
  18.  
  19. class nsISOAPResponse; /* forward declaration */
  20.  
  21. class nsISOAPResponseListener; /* forward declaration */
  22.  
  23.  
  24. /* starting interface:    nsISOAPCallCompletion */
  25. #define NS_ISOAPCALLCOMPLETION_IID_STR "86114dd8-1dd2-11b2-ab2b-91d0c995e03a"
  26.  
  27. #define NS_ISOAPCALLCOMPLETION_IID \
  28.   {0x86114dd8, 0x1dd2, 0x11b2, \
  29.     { 0xab, 0x2b, 0x91, 0xd0, 0xc9, 0x95, 0xe0, 0x3a }}
  30.  
  31. /**
  32.  * This permits the invoker of an asynchronous call to
  33.  *   abort the call before it completes or to test to
  34.  *   see whether it is complete.
  35.  */
  36. class NS_NO_VTABLE nsISOAPCallCompletion : public nsISupports {
  37.  public: 
  38.  
  39.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPCALLCOMPLETION_IID)
  40.  
  41.   /**
  42.    * The call which was invoked (may have changed since
  43.    *   the call was made).
  44.    */
  45.   /* readonly attribute nsISOAPCall call; */
  46.   NS_IMETHOD GetCall(nsISOAPCall * *aCall) = 0;
  47.  
  48.   /**
  49.    * The response, if any, to the call.
  50.    */
  51.   /* readonly attribute nsISOAPResponse response; */
  52.   NS_IMETHOD GetResponse(nsISOAPResponse * *aResponse) = 0;
  53.  
  54.   /**
  55.    * The listener to the call.
  56.    */
  57.   /* readonly attribute nsISOAPResponseListener listener; */
  58.   NS_IMETHOD GetListener(nsISOAPResponseListener * *aListener) = 0;
  59.  
  60.   /**
  61.    * Whether the call is complete.
  62.    */
  63.   /* readonly attribute boolean isComplete; */
  64.   NS_IMETHOD GetIsComplete(PRBool *aIsComplete) = 0;
  65.  
  66.   /**
  67.    * Cause the invoked method to abort, if it is not
  68.    * already complete.
  69.    * @return true if the state of isComplete became
  70.    *   true as a result.  False if it was already
  71.    *   true or reamined false.
  72.    */
  73.   /* boolean abort (); */
  74.   NS_IMETHOD Abort(PRBool *_retval) = 0;
  75.  
  76. };
  77.  
  78. /* Use this macro when declaring classes that implement this interface. */
  79. #define NS_DECL_NSISOAPCALLCOMPLETION \
  80.   NS_IMETHOD GetCall(nsISOAPCall * *aCall); \
  81.   NS_IMETHOD GetResponse(nsISOAPResponse * *aResponse); \
  82.   NS_IMETHOD GetListener(nsISOAPResponseListener * *aListener); \
  83.   NS_IMETHOD GetIsComplete(PRBool *aIsComplete); \
  84.   NS_IMETHOD Abort(PRBool *_retval); 
  85.  
  86. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  87. #define NS_FORWARD_NSISOAPCALLCOMPLETION(_to) \
  88.   NS_IMETHOD GetCall(nsISOAPCall * *aCall) { return _to GetCall(aCall); } \
  89.   NS_IMETHOD GetResponse(nsISOAPResponse * *aResponse) { return _to GetResponse(aResponse); } \
  90.   NS_IMETHOD GetListener(nsISOAPResponseListener * *aListener) { return _to GetListener(aListener); } \
  91.   NS_IMETHOD GetIsComplete(PRBool *aIsComplete) { return _to GetIsComplete(aIsComplete); } \
  92.   NS_IMETHOD Abort(PRBool *_retval) { return _to Abort(_retval); } 
  93.  
  94. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  95. #define NS_FORWARD_SAFE_NSISOAPCALLCOMPLETION(_to) \
  96.   NS_IMETHOD GetCall(nsISOAPCall * *aCall) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCall(aCall); } \
  97.   NS_IMETHOD GetResponse(nsISOAPResponse * *aResponse) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponse(aResponse); } \
  98.   NS_IMETHOD GetListener(nsISOAPResponseListener * *aListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
  99.   NS_IMETHOD GetIsComplete(PRBool *aIsComplete) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsComplete(aIsComplete); } \
  100.   NS_IMETHOD Abort(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(_retval); } 
  101.  
  102. #if 0
  103. /* Use the code below as a template for the implementation class for this interface. */
  104.  
  105. /* Header file */
  106. class nsSOAPCallCompletion : public nsISOAPCallCompletion
  107. {
  108. public:
  109.   NS_DECL_ISUPPORTS
  110.   NS_DECL_NSISOAPCALLCOMPLETION
  111.  
  112.   nsSOAPCallCompletion();
  113.  
  114. private:
  115.   ~nsSOAPCallCompletion();
  116.  
  117. protected:
  118.   /* additional members */
  119. };
  120.  
  121. /* Implementation file */
  122. NS_IMPL_ISUPPORTS1(nsSOAPCallCompletion, nsISOAPCallCompletion)
  123.  
  124. nsSOAPCallCompletion::nsSOAPCallCompletion()
  125. {
  126.   /* member initializers and constructor code */
  127. }
  128.  
  129. nsSOAPCallCompletion::~nsSOAPCallCompletion()
  130. {
  131.   /* destructor code */
  132. }
  133.  
  134. /* readonly attribute nsISOAPCall call; */
  135. NS_IMETHODIMP nsSOAPCallCompletion::GetCall(nsISOAPCall * *aCall)
  136. {
  137.     return NS_ERROR_NOT_IMPLEMENTED;
  138. }
  139.  
  140. /* readonly attribute nsISOAPResponse response; */
  141. NS_IMETHODIMP nsSOAPCallCompletion::GetResponse(nsISOAPResponse * *aResponse)
  142. {
  143.     return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145.  
  146. /* readonly attribute nsISOAPResponseListener listener; */
  147. NS_IMETHODIMP nsSOAPCallCompletion::GetListener(nsISOAPResponseListener * *aListener)
  148. {
  149.     return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151.  
  152. /* readonly attribute boolean isComplete; */
  153. NS_IMETHODIMP nsSOAPCallCompletion::GetIsComplete(PRBool *aIsComplete)
  154. {
  155.     return NS_ERROR_NOT_IMPLEMENTED;
  156. }
  157.  
  158. /* boolean abort (); */
  159. NS_IMETHODIMP nsSOAPCallCompletion::Abort(PRBool *_retval)
  160. {
  161.     return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163.  
  164. /* End of implementation class template. */
  165. #endif
  166.  
  167.  
  168. #endif /* __gen_nsISOAPCallCompletion_h__ */
  169.